﻿using AutoMapper;
using B.R.RabbitRoot.Domain;
using B.R.RabbitRoot.Domain.animal_husbandry;
using B.R.RabbitRoot.Write.API.Applications.Commandhandlers.ImgCommandHandlers;
using B.R.RabbitRoot.Write.API.Applications.Commands.FarmingCommands;
using B.R.RabbitRoot.Write.API.Applications.Commands.HealthCareCommands;
using B.R.RabbitRoot.Write.API.Applications.Commands.SourceCommands;

namespace B.R.RabbitRoot.Write.API
{
    /// <summary>
    /// 映射轮廓
    /// </summary>
    public class MappingProfile:Profile
    {
        public MappingProfile() 
        {
            CreateMap<SourceCreamCommand, SourceInfo>();
            CreateMap<SourceDeleteCommand, SourceInfo>();
            CreateMap<SoureceUpdateCommand, SourceInfo>();
            CreateMap<ImageTableDeleteCommandHandler, ImageTable>();
            CreateMap<FarmingCreamCommand, FarmingDetails>();
            CreateMap<HealthCareCreamCommand, HealthCareInfo>();
        }
    }
}
